import request from "@/utils/request";

// 查询房间信息列表
export function listRoom(query) {
  return request({
    url: "/system/room/list",
    method: "post",
    data: query,
  });
}

// 查询房间信息详细
export function getRoom(id) {
  return request({
    url: "/system/room/detail/" + id,
    method: "get",
  });
}

// 新增房间信息
export function addRoom(data) {
  return request({
    url: "/system/room/add",
    method: "post",
    data: data,
  });
}

// 修改房间信息
export function updateRoom(data) {
  return request({
    url: "/system/room/edit",
    method: "post",
    data: data,
  });
}

// 删除房间信息
export function delRoom(id) {
  return request({
    url: "/system/room/remove",
    method: "post",
    data: id,
  });
}

// 导出房间信息
export function exportRoom(query) {
  return request({
    url: "/system/room/export",
    method: "get",
    params: query,
  });
}
